import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from "axios";
import {
  Tabbar,
  TabbarItem,
  List,
  Cell,
  CellGroup,
  Button,
  Field,
  NavBar,
  Lazyload,
  Loading,
  Toast
} from "vant";
import "./base.scss";

Vue.config.productionTip = false;
Vue.prototype.$http = axios;
Vue.use(Tabbar)
  .use(TabbarItem)
  .use(List)
  .use(Cell)
  .use(CellGroup)
  .use(Button)
  .use(Field)
  .use(NavBar)
  .use(Lazyload, {
    loading: "/loading.gif"
  })
  .use(Loading)
  .use(Toast);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
